package edu.cueb.wmis.utils;

import edu.cueb.wmis.pojo.Incomebillitem;

public class ShelfUtils {
    public static void setShelves(Incomebillitem incomebillitem){
        Integer number = incomebillitem.getInNumber();
        if(number>=1 && number <= 10){
            incomebillitem.setShelfId(1);
        }else if(number>=11 && number <= 20){
            incomebillitem.setShelfId(2);
        }else if(number>=21 && number <= 30){
            incomebillitem.setShelfId(3);
        }
        else if(number>=31 && number <= 40){
            incomebillitem.setShelfId(4);
        }
        else if(number>=41 && number <= 50){
            incomebillitem.setShelfId(5);
        }else if(number>=51 && number <= 60){
            incomebillitem.setShelfId(6);
        }else if(number>=61 && number <= 70){
            incomebillitem.setShelfId(7);
        }else if(number>=71 && number <= 80){
            incomebillitem.setShelfId(8);
        }else if(number>=81 && number <= 90){
            incomebillitem.setShelfId(9);
        }else if(number>=91 && number <= 100){
            incomebillitem.setShelfId(10);
        }
    }
}
